<ResourceDictionary
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:winCtrl="clr-namespace:VCom.Windows.Controls;assembly=VCom.Windows"
             xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic">


    <Style TargetType="{x:Type winCtrl:BaseMainTabControl}">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Background" Value="#FFC2C0BE"/>
        <Setter Property="BorderBrush" Value="{x:Static Microsoft_Windows_Themes:ClassicBorderDecorator.ClassicBorderBrush}"/>
        <Setter Property="BorderThickness" Value="3"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="MinWidth" Value="10"/>
        <Setter Property="MinHeight" Value="10"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type winCtrl:BaseMainTabControl}">
                    <Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="ColumnDefinition0"/>
                            <ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Name="RowDefinition0" Height="Auto"/>
                            <RowDefinition x:Name="RowDefinition1" Height="*"/>
                        </Grid.RowDefinitions>
                        <TabPanel x:Name="HeaderPanel" Background="Transparent" Grid.Column="0" IsItemsHost="true" Margin="10,2,2,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/>
                        <Grid Margin="1,0,2,0" x:Name="ContentPanel" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
                            <Microsoft_Windows_Themes:ClassicBorderDecorator BorderBrush="Gray" BorderThickness="1" BorderStyle="Raised" Background="{TemplateBinding Background}">
                                <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="2,2,2,2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            </Microsoft_Windows_Themes:ClassicBorderDecorator>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter Property="Grid.Row" TargetName="HeaderPanel" Value="1"/>
                            <Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
                            <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
                            <Setter Property="Height" TargetName="RowDefinition1" Value="Auto"/>
                            <Setter Property="Margin" TargetName="HeaderPanel" Value="2,0,2,2"/>
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter Property="Grid.Row" TargetName="HeaderPanel" Value="0"/>
                            <Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
                            <Setter Property="Grid.Column" TargetName="HeaderPanel" Value="0"/>
                            <Setter Property="Grid.Column" TargetName="ContentPanel" Value="1"/>
                            <Setter Property="Width" TargetName="ColumnDefinition0" Value="Auto"/>
                            <Setter Property="Width" TargetName="ColumnDefinition1" Value="*"/>
                            <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
                            <Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
                            <Setter Property="Margin" TargetName="HeaderPanel" Value="2,2,0,2"/>
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter Property="Grid.Row" TargetName="HeaderPanel" Value="0"/>
                            <Setter Property="Grid.Row" TargetName="ContentPanel" Value="0"/>
                            <Setter Property="Grid.Column" TargetName="HeaderPanel" Value="1"/>
                            <Setter Property="Grid.Column" TargetName="ContentPanel" Value="0"/>
                            <Setter Property="Width" TargetName="ColumnDefinition0" Value="*"/>
                            <Setter Property="Width" TargetName="ColumnDefinition1" Value="Auto"/>
                            <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
                            <Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
                            <Setter Property="Margin" TargetName="HeaderPanel" Value="0,2,2,2"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="tabCloseButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border>
                        <Path x:Name="closePath" Grid.Column="1" Margin="0,0,0,0" Width="12" Height="12" Fill="#FFD27062" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" VerticalAlignment="Center" Opacity="0.7" RenderTransformOrigin="-3.625,-0.233" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="closePath" Property="Fill" Value="Red" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style  x:Key="BaseTabItemStyle"  TargetType="{x:Type winCtrl:BaseMainTabItem}">
        <Setter Property="Height" Value="40" />
        <Setter Property="MinWidth" Value="152" ></Setter>
        <Setter Property="FontWeight" Value="Normal" ></Setter>
        <Setter Property="FontFamily" Value="Microsoft YaHei,Microsoft JhengHei" ></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type winCtrl:BaseMainTabItem}">
                    <Border Margin="2,0,0,0" x:Name="Bd" BorderThickness="1,1,1,0" CornerRadius="0,0,0,0" >
                        <Border CornerRadius="0,0,0,0">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                                    <GradientStop Color="#E8E8E8" Offset="0"/>
                                    <GradientStop Color="#F6F6F6"  Offset="0.5"/>
                                    <GradientStop Color="#E6E6E6"  Offset="0.5"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Grid  x:Name="ItemGrid" TextElement.FontFamily="Microsoft YaHei,Microsoft JhengHei" TextElement.FontSize="16"  SnapsToDevicePixels="True"  >
                                <Grid.RowDefinitions>
                                    <RowDefinition></RowDefinition>
                                    <RowDefinition></RowDefinition>
                                </Grid.RowDefinitions>
                                <StackPanel Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Center" Margin="10,5,10,5">
                                    <Grid >
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid x:Name="ItemImg" Width="20" Grid.Column="0" Height="20"  Background="#FF545252">
                                            <Grid.OpacityMask>
                                                <ImageBrush ImageSource="{TemplateBinding ItemImage}"/>
                                            </Grid.OpacityMask>
                                        </Grid>
                                        <ContentPresenter x:Name="Content" Grid.Column="1"  ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"/>
                                        <Button Grid.Column="2" x:Name="closeButton" Visibility="{TemplateBinding CloseButtonVisibility}" Style="{StaticResource tabCloseButtonStyle}" />
                                    </Grid>
                                </StackPanel>
                                <Border x:Name="Highlight" BorderBrush="{DynamicResource PrimitivesBrushKeys.TabItemHottrackHighlightDarkFillKey}"  Background="{DynamicResource PrimitivesBrushKeys.TabItemHottrackHighlightLightFillKey}" CornerRadius="3,3,0,0" Height="3" Visibility="Collapsed" VerticalAlignment="Top"/>
                            </Grid>
                        </Border>
                    </Border>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <!--<Setter Property="Background" TargetName="ItemGrid" Value="#FFDEDEDC" >-->

                            <!--</Setter>-->
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Panel.ZIndex" Value="1"/>
                            <Setter Property="Visibility" TargetName="Highlight" Value="Visible"/>
                            <Setter Property="Focusable" Value="False" />
                            <Setter Property="TextElement.Foreground" TargetName="ItemGrid" Value="#0F5E94" />
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemIsSelectedTopCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemIsSelectedOuterBorderFillKey}"/>
                            <Setter Property="Background" TargetName="ItemImg" Value="#FF0A4676"/>

                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemDisabledCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemDisabledOuterBorderFillKey}"/>
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            <Setter Property="Visibility" TargetName="Highlight" Value="Collapsed"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <LinearGradientBrush x:Key="normalBackground" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFECEBE6" Offset="1"/>
    </LinearGradientBrush>

    <Style TargetType="{x:Type TabItem}">
        <Setter Property="Foreground" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalTextFillKey}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalOuterBorderFillKey}"/>
        <Setter Property="Background" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalTopCenterFillKey}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabItem}">
                    <Grid SnapsToDevicePixels="True">
                        <Border x:Name="Bd" BorderBrush="Gray" BorderThickness="1,1,1,0" Background="{StaticResource normalBackground}" CornerRadius="3,3,0,0" Padding="{TemplateBinding Padding}">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <ContentPresenter x:Name="Content" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"/>
                            </Grid>
                        </Border>
                        <Border x:Name="Highlight" BorderBrush="#E68B2C" BorderThickness="1,1,1,0" Background="#FFC73C" CornerRadius="3,3,0,0" Height="3" Visibility="Collapsed" VerticalAlignment="Top"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True"/>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Panel.ZIndex" Value="1"/>
                            <Setter Property="Visibility" TargetName="Highlight" Value="Visible"/>
                            <Setter Property="Background" TargetName="Bd" Value="White"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="Gray"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Visibility" TargetName="Highlight" Value="Visible"/>
                        </MultiTrigger>
                        <Trigger Property="TabStripPlacement" Value="Top">
                            <Setter Property="Padding" Value="5,2,15,2"/>
                            <Setter Property="Margin" Value="1,-1,-2,0"/>
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter Property="Padding" Value="5,2,4,2"/>
                            <Setter Property="Margin" Value="0,0,-1,0"/>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalBottomCenterFillKey}"/>
                            <Setter Property="BorderThickness" TargetName="Bd" Value="1,1,1,1"/>
                            <Setter Property="CornerRadius" TargetName="Bd" Value="0,0,3,3"/>
                            <Setter Property="BorderThickness" TargetName="Bd" Value="1,0,1,1"/>
                            <Setter Property="VerticalAlignment" TargetName="Highlight" Value="Bottom"/>
                            <Setter Property="CornerRadius" TargetName="Highlight" Value="0,0,3,3"/>
                            <Setter Property="BorderThickness" TargetName="Highlight" Value="1,0,1,1"/>
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter Property="Padding" Value="4,3"/>
                            <Setter Property="Margin" Value="0,0,0,1"/>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalLeftCenterFillKey}"/>
                            <Setter Property="BorderThickness" TargetName="Bd" Value="1,1,0,1"/>
                            <Setter Property="CornerRadius" TargetName="Bd" Value="3,0,0,3"/>
                            <Setter Property="VerticalAlignment" TargetName="Highlight" Value="Stretch"/>
                            <Setter Property="HorizontalAlignment" TargetName="Highlight" Value="Left"/>
                            <Setter Property="Height" TargetName="Highlight" Value="Auto"/>
                            <Setter Property="Width" TargetName="Highlight" Value="3"/>
                            <Setter Property="CornerRadius" TargetName="Highlight" Value="3,0,0,3"/>
                            <Setter Property="BorderThickness" TargetName="Highlight" Value="1,1,0,1"/>
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter Property="Padding" Value="4,3"/>
                            <Setter Property="Margin" Value="0,0,0,1"/>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemNormalRightCenterFillKey}"/>
                            <Setter Property="BorderThickness" TargetName="Bd" Value="0,1,1,1"/>
                            <Setter Property="CornerRadius" TargetName="Bd" Value="0,3,3,0"/>
                            <Setter Property="VerticalAlignment" TargetName="Highlight" Value="Stretch"/>
                            <Setter Property="HorizontalAlignment" TargetName="Highlight" Value="Right"/>
                            <Setter Property="Height" TargetName="Highlight" Value="Auto"/>
                            <Setter Property="Width" TargetName="Highlight" Value="3"/>
                            <Setter Property="CornerRadius" TargetName="Highlight" Value="0,3,3,0"/>
                            <Setter Property="BorderThickness" TargetName="Highlight" Value="0,1,1,1"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Top"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Margin" Value="-1,-2,-2,-1"/>
                            <Setter Property="Margin" TargetName="Content" Value="0,0,0,1"/>
                            <Setter Property="Padding" Value="7,1,8,3"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Bottom"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemIsSelectedBottomCenterFillKey}"/>
                            <Setter Property="Margin" Value="-1,-1,-2,-1.5"/>
                            <Setter Property="Margin" TargetName="Content" Value="0,1,0,0"/>
                            <Setter Property="Padding" Value="7,3,8,1"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Left"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemIsSelectedLeftCenterFillKey}"/>
                            <Setter Property="Margin" Value="-2,-2,-1,-3"/>
                            <Setter Property="Margin" TargetName="Content" Value="0,0,1,0"/>
                            <Setter Property="Padding" Value="4,5,4,7"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Right"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemIsSelectedRightCenterFillKey}"/>
                            <Setter Property="Margin" Value="-1,-2,-2,-3"/>
                            <Setter Property="Margin" TargetName="Content" Value="1,0,0,0"/>
                            <Setter Property="Padding" Value="4,5,4,7"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Top"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackTopCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackOuterBorderFillKey}"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Bottom"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackBottomCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackOuterBorderFillKey}"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Left"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackLeftCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackOuterBorderFillKey}"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="TabStripPlacement" Value="Right"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackRightCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemHottrackOuterBorderFillKey}"/>
                        </MultiTrigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemDisabledCenterFillKey}"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource PrimitivesBrushKeys.TabItemDisabledOuterBorderFillKey}"/>
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                            <Setter Property="Visibility" TargetName="Highlight" Value="Collapsed"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
